﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DefendPROC.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.ControlPanel.DefendPROC" %>

<%@ Register Assembly="WinnerCMS.WebControls" Namespace="WinnerCMS.WebControls" TagPrefix="TW" %>
<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!doctype html>
<html>
<head runat="server">
    <title>防垃圾策略</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>


    <%: Styles.Render("~/Content/Bootstrap/css") %>



    <style type="text/css">
        .RowTitle {
            width: 200px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <table id="NavigationPath" border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td width="50%">

                    <asp:Label ID="lblPath" runat="server"></asp:Label>
                </td>
                <td width="50%"></td>
            </tr>
        </table>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table width="100%" class="TabelGrid">
                    <tr>
                        <td class="RowTitle">开启提交来源检查：
                        </td>
                        <td>  
                            <asp:RadioButtonList ID="cbkCheckPost" runat="server" RepeatDirection="Horizontal"
                                  CssClass="icheckboxStyle">
                                <asp:ListItem Value="1">开启（推荐）</asp:ListItem>
                                <asp:ListItem Value="0">关闭</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="RowTitle">开启中文汉字检查：
                        </td>
                        <td>
                            <asp:RadioButtonList ID="cbkCheckCN" runat="server" RepeatDirection="Horizontal"
                                  CssClass="icheckboxStyle">
                                <asp:ListItem Value="1">开启（推荐）</asp:ListItem>
                                <asp:ListItem Value="0">关闭</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="RowTitle">允许发布的链接最大数目：
                        </td>
                        <td>
                            <TW:NumericTextBox ID="NtxtLinkNum" runat="server" Width="56px"></TW:NumericTextBox>
                            超过会被禁止发布这条信息
                        </td>
                    </tr>
                    <tr>
                        <td class="RowTitle">单位时间内发布数量限制：
                        </td>
                        <td>
                            <TW:NumericTextBox ID="NtxtPostSpeed" runat="server" Width="56px"></TW:NumericTextBox>
                            超过会被添加进IP黑名单
                        </td>
                    </tr>
                    <tr>
                        <td class="RowTitle">&nbsp;</td>
                        <td>
                            <asp:Button ID="btnSave" runat="server" Cssclass="btn btn-default" OnClick="btnSave_Click"
                                Text="保存" />
                        </td>
                    </tr>
                    <tr>
                        <td class="RowTitle" style="vertical-align: top">垃圾广告识别关键字：
                        </td>
                        <td>
                            <asp:TextBox ID="txtFind" runat="server"></asp:TextBox>
                            <asp:Button ID="btnAddBL" runat="server" Text="添加" Cssclass="btn btn-default" OnClick="btnAddBL_Click" />
                            &nbsp;含有以下关键字将禁止发布这条信息<br />
                            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                                OnRowCancelingEdit="GV_List_RowCancelingEdit" OnRowDeleting="GV_List_RowDeleting"
                                OnRowUpdating="GV_List_RowUpdating" OnRowEditing="GV_List_RowEditing" GridLines="None" CssClass="table table-bordered table-condensed table-hover">
                                <Columns>
                                    <asp:BoundField HeaderText="词" DataField="Find" />
                                    <asp:BoundField DataField="updatetime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}"
                                        HeaderText="更新" ReadOnly="True">
                                        <HeaderStyle Width="120px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:CommandField ShowEditButton="True">
                                        <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:CommandField>
                                    <asp:TemplateField ShowHeader="False">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lblDelete" runat="server" CausesValidation="False"
                                                CommandName="Delete" OnClientClick="return confirm('您确定要删除？');" Text="删除"></asp:LinkButton>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                </Columns>
                                <HeaderStyle CssClass="HeaderStyle" />
                            </asp:GridView>
                            <TW:PageNavigation ID="PageNavigation1" runat="server" ShowCustomInfoSection="Never"
                                SubmitButtonclass="btn btn-default" Width="100%" AlwaysShow="True" OnPageChanging="PageNavigation1_PageChanging">
                            </TW:PageNavigation>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: center">&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: left">
                          
                                该策略同时应用与留言本和评论。 
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
